package cn.tedu.malldemo.mapper;

import cn.tedu.malldemo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liuzhihao
 * @since 2022-08-03
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    @Select("select user_permission from user where id=#{id}")
    String selectUserPermissionById(Long id);

}
